package com.suxin.jvm.jmx;

/**
 * @author Tang
 * @classname Hello
 * @description [  ]
 * @date 2022/5/9 23:15
 */
public class Hello implements HelloMBean {

    private String name;
    private Integer age;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
        System.out.println("设置名称:--->" + name);
    }

    @Override
    public int add(int a, int b) {
        return a + b;
    }
}